home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Graphismes / 3D / POV-Ray 3.0B5a PPC / POV-Ray 3.0B5a / POVSCN.Scenes / POVSCN / LEVEL2 / PACMAN.POV < prev    next >
Text File  |  1995-11-08  |  5KB  |  243 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Ville Saari
  3. // Copyright (c) 1991 Ferry Island Pixelboys
  4. // "Pac Man doing his favourite job"
  5. //
  6. // Created: 03-Jan-91
  7. // Updated: 05-Jan-91
  8. //
  9. // You will need pacman.iff which is included in this package.
  10. // If you do some nice modifications or additions to this file, please send
  11. // me a copy. My Internet address is: vsaari@niksula.hut.fi
  12.  
  13. #version 3.0
  14. global_settings { assumed_gamma 1.0 }
  15.  
  16. #include "shapes.inc"
  17.  
  18. camera {
  19.    location <-80.0, 35.0, -140.0>
  20.    direction <0.0, 0.0, 1.0>
  21.    up  <0.0, 1.0, 0.0>
  22.    right <1.244, 0.0, 0.0>
  23.    sky <0.0, 1.0, 0.0>
  24.    look_at <40.0, 10.0, 0.0>
  25. }
  26.  
  27. /* The maze-textured ground */
  28. plane { y, 0.0
  29.    pigment {
  30.       image_map { iff "pacman.iff" interpolate 2.0 }
  31.       rotate 90*x
  32.       scale 1600
  33.       translate <-196.0, 0.0, 160.0>
  34.    }
  35.    finish {
  36.       ambient 0.15
  37.       diffuse 0.7
  38.       reflection 0.5
  39.    }
  40. }
  41.  
  42. union { /* And now the world famous... Ta Da! ... pac man */
  43.    /* Body */
  44.    intersection {
  45.       sphere { <0.0, 0.0, 0.0>, 30.0 }
  46.       sphere { <0.0, 0.0, 0.0>, 28.0 inverse }
  47.  
  48.       union {
  49.          plane { <0.0, +1.0, 0.0>, 0.0 rotate -35*x }
  50.          plane { <0.0, -1.0, 0.0>, 0.0 rotate 10.0*x }
  51.       }
  52.  
  53.       sphere { <0.0, 0.0, -29.0>, 1.5
  54.          inverse
  55.          rotate <16.0, -4.0, 0.0>
  56.       }
  57.  
  58.       sphere { <0.0, 0.0, -29.0>, 1.5
  59.          inverse
  60.          rotate <16.0, 4.0, 0.0>
  61.       }
  62.  
  63.       pigment { colour red 0.9 green 0.8 }
  64.       finish {
  65.          ambient 0.15
  66.          diffuse 0.7
  67.          specular 0.5
  68.          roughness 0.1
  69.       }
  70.    }
  71.  
  72.    intersection {
  73.       sphere { <0.0, 0.0, 0.0>, 28.0 }
  74.       union {
  75.          plane { +2*y, -2.0 rotate -35*x }
  76.          plane { -2*y, -2.0 rotate 10*x }
  77.       }
  78.  
  79.       pigment { colour red 0.5 }
  80.       finish { ambient 0.25 diffuse 0.75 }
  81.    }
  82.  
  83.    /* Tongue */
  84.    union {
  85.       sphere { <3.0, 0.0, -15.0>, 10.0 }
  86.       sphere { <-3.0, 0.0, -15.0>, 10.0 }
  87.  
  88.       pigment { colour red 1.0 }
  89.       normal {
  90.          wrinkles 0.5
  91.          scale 0.5
  92.       }
  93.       finish {
  94.          ambient 0.15
  95.          diffuse 0.7
  96.          reflection 0.5
  97.       }
  98.  
  99.       rotate -45*x
  100.    }
  101.  
  102.    union { /* Right eye */
  103.       sphere { <0.0, 0.0, 0.0>, 6.0
  104.          pigment { colour red 1.0 green 1.0 blue 1.0 }
  105.          finish {
  106.             ambient 0.15
  107.             diffuse 0.7
  108.             reflection 0.5
  109.          }
  110.       }
  111.  
  112.       sphere { <0.0, 0.0, -2.3>, 4.0
  113.          pigment { colour red 0.3 green 0.4 blue 0.8 }
  114.          finish {
  115.             ambient 0.15
  116.             diffuse 0.7
  117.             reflection 0.5
  118.          }
  119.       }
  120.  
  121.       sphere { <0.0, 0.0, -5.5>, 1.0
  122.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  123.          finish {
  124.             ambient 0.15
  125.             diffuse 0.7
  126.             reflection 0.5
  127.          }
  128.       }
  129.  
  130.       sphere { <0, 0, 0>, 1
  131.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  132.  
  133.          scale <9.0, 2.0, 9.0>
  134.          translate <0.0, 8.0, 6.0>
  135.          rotate -10.0*z
  136.       }
  137.  
  138.       rotate <-25.0, -20.0, 0.0>
  139.       translate -26.0*z
  140.       rotate <25.0, 20.0, 0.0>
  141.    }
  142.  
  143.    union { /* Left eye */
  144.       sphere { <0.0, 0.0, 0.0>, 6.0
  145.          pigment { colour red 1.0 green 1.0 blue 1.0 }
  146.          finish {
  147.             ambient 0.15
  148.             diffuse 0.7
  149.             reflection 0.5
  150.          }
  151.       }
  152.  
  153.       sphere { <0.0, 0.0, -2.3>, 4.0
  154.          pigment { colour red 0.3 green 0.4 blue 0.8 }
  155.          finish {
  156.             ambient 0.15
  157.             diffuse 0.7
  158.             reflection 0.5
  159.          }
  160.       }
  161.  
  162.       sphere { <0.0, 0.0, -5.5>, 1.0
  163.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  164.          finish {
  165.             ambient 0.15
  166.             diffuse 0.7
  167.             reflection 0.5
  168.          }
  169.       }
  170.  
  171.       sphere { <0, 0, 0>, 1
  172.          pigment { colour red 0.0 green 0.0 blue 0.0 }
  173.  
  174.          scale <9.0, 2.0, 9.0>
  175.          translate <-0.0, 8.0, 6.0>
  176.          rotate 10*z
  177.       }
  178.  
  179.       rotate <-25.0, 20.0, 0.0>
  180.       translate -26.0*z
  181.       rotate <25.0, -20.0, 0.0>
  182.    }
  183.  
  184. //   bounded_by { sphere { <0.0, 0.0, -2.0>, 32.0 } }
  185.  
  186.    translate 32*y
  187. }
  188.  
  189. /* Food... */
  190. sphere { <0.0, 27.0, -25.0>, 4.0
  191.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  192.    finish {
  193.       ambient 0.15
  194.       diffuse 0.7
  195.       specular 2.0
  196.       roughness 0.01
  197.       reflection 0.6
  198.    }
  199. }
  200.  
  201. /* ... more food ... */
  202. sphere { <0.0, 27.0, -45.0>, 4.0
  203.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  204.    finish {
  205.       ambient 0.15
  206.       diffuse 0.7
  207.       reflection 0.5
  208.    }
  209. }
  210.  
  211. /* ... and even more ... */
  212. sphere { <0.0, 27.0, -65.0>, 4.0
  213.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  214.    finish {
  215.       ambient 0.15
  216.       diffuse 0.7
  217.       reflection 0.5
  218.    }
  219. }
  220.  
  221. /* ... uh ... yet more food ... */
  222. sphere { <0.0, 27.0, -85.0>, 4.0
  223.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  224.    finish {
  225.       ambient 0.15
  226.       diffuse 0.7
  227.       reflection 0.5
  228.    }
  229. }
  230.  
  231. /* ... Yuck! ... no more please! */
  232. sphere { <0.0, 27.0, -105.0>, 4.0
  233.    pigment { colour red 1.0 green 1.0 blue 1.0 }
  234.    finish {
  235.       ambient 0.15
  236.       diffuse 0.7
  237.       reflection 0.5
  238.    }
  239. }
  240.  
  241. /* Click */
  242. light_source { <60.0, 120.0, -170.0> colour red 1.0 green 1.0 blue 1.0 }
  243.